<?php
$root_path = dirname(__FILE__); 
require_once $root_path . '/siteroot.php';
require_once PATH_NAME . '/controllers/users/users.php';
require_once PATH_NAME . '/utilities/sessions.php';
require_once PATH_NAME . '/includes/access.php';	
$access = new Access();
$show = new usersController();
if (isset($_GET['list'])){
	$list = $_GET['list'];
	switch($list){
		case 'agent':
			$show->showAgentList();
			break;
		case 'customers':
			$show->showCustomersList();
			break;
		case 'contract':
			$show->showContractList();
			break;
	}
}elseif ( isset($_GET['edit']) ){
	$edit = $_GET['edit'];
	$id = $_GET['id']?$_GET['id']:0;
	switch($edit){
		case 'customer':			
			$show->editCustomerList( $id );
			break;
		case 'contract':
			$show->editContractList();
			break;
	}
}
?>